package com.example.demo1.pojo;

public class pet {
    private String name;
    private String color;

    public pet(){

    }

    public pet(String name, String color){
        this.name = name;
        this.color = color;
    }

    public String getName(){
        return  name;
    }

    public void setName(String name){
        this.name = name;
    }

    public String getColor(){
        return color;
    }

    public void setColor(String color){
        this.color = color;
    }

    @Override
    public String toString(){
        return "pet{" +
                "name'" + name + '\'' +
                ", color='" + color + '\'' +
                '}';
    }

    }


